<?php
include('general_include.php');

$admin_id = @$_SESSION['SesGTAdminID'];
$_SESSION['SesGTAdminID'] = "";
unset($_SESSION['SesGTAdminID']);
unset($_SESSION['SesGTAdminKey']);
unset($_SESSION['SesGTAdminName']);
unset($_SESSION['SesGTdminKey']);

session_unregister("SesGTAdminID");
session_unregister("SesGTAdminKey");
session_unregister("SesGTAdminName");
echo "<script>window.location.href='index.php'</script>";


if($admin_id > 0){
	echo '<script>window.location.href="'.SITE_URL.'/forum/ucp.php?mode=logout&main_site=true";</script>';
	exit;
}





exit;
?>